/* Author : Putri Andita R
 * 		    091511059
 * Proyek 4*/


package jtk.project4.fleet.field;

import java.awt.Dimension;
import java.awt.FlowLayout;

import nl.coderight.jazz.form.FormField;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.SelectField;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.button.PushButton;


public class ServiceNameField extends GroupControl{
	private TextField serviceNameField;
	
			
	
	public ServiceNameField(String bindID){
		setTitle("header.serviceName");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	

	private void createFields() {
		// TODO Auto-generated method stub
		serviceNameField = new TextField("serviceName", 55);
		serviceNameField.setRequired(true);
		
				
						
			
		
	}
	
	
	
	private void createLayout() {
		// TODO Auto-generated method stub
		
		
		setLayout(new FormLayout())
		
		.addLabel("label.serviceName")		.addField(serviceNameField)
		
		;	
		
	}	
	
	
	
}
